package com.ledim.datastatistics;

import com.letv.tracker2.enums.NetworkModel;
import com.letv.tracker2.enums.PlayType;
import com.letv.tracker2.enums.StreamType;

/**
 * Created by ccx on 16/6/1.
 * 上传视频播放相关的数据（必传）
 */
public class VideoPlayCommonParams {

    /**
     * 视频播放类型；最终每条消息必带
     */
    public PlayType playType;
    ///**
    // * 视频id，点播与轮播中的点播必报
    // */
    //public String vid;
    ///**
    // * 轮播台id，轮播必报
    // */
    //public String station_id;
    //
    ///**
    // * 直播id，直播与轮播中的直播必报
    // */
    //public String live_id;
    /**
     * 网络类型,最终每条消息必带
     */
    public NetworkModel network_type;
    /**
     * 发版代码,最终每条消息必带
     */
    public String pcode;
    /**
     * 设备id，最终每条消息必带
     */
    public String auid;
    /**
     * 频道ID,最终每条消息必带
     */
    public String channel_id;
    /**
     * 专辑id，最终每条消息必带
     */
    public String album_id;
    /**
     * 专题ID，最终每条消息必带
     */
    public String subject_id;
    /**
     * 链接网址，最终每条消息必带
     */
    public String url;
    /**
     * 码流，最终每条消息必带
     */
    public StreamType stream;

    /**
     * 播放内容是否push；最终每条消息必带
     */
    public int push_type;
    ///**
    // * cde的app id，仅在初始化时上传
    // */
    //public String cde_id;
    ///**
    // * cde的app id，仅在初始化时上传
    // */
    //public String cde_version;
    /**
     * 视频长度，每条消息必传
     */
    public int length;
    /**
     * 起播类型；最终每条消息必带
     * 0 ：点播；
     * 1：连播；
     * 2：切换码流
     */
    public int ipt;

    public VideoPlayCommonParams(PlayType playType, NetworkModel network_type, String pcode,
                                 String auid, String channel_id, String album_id, String subject_id,
                                 String url, StreamType stream, int push_type, int length,
                                 int ipt) {
        this.playType = playType;
        this.network_type = network_type;
        this.pcode = pcode;
        this.auid = auid;
        this.channel_id = channel_id;
        this.album_id = album_id;
        this.subject_id = subject_id;
        this.url = url;
        this.stream = stream;
        this.push_type = push_type;
        this.length = length;
        this.ipt = ipt;
    }
}
